export const contorl = {
  ctx: null,
  canvas: null
}
export const getCtx = () => {
  return contorl.ctx
}
export const getCanvas = () => {
  return contorl.canvas
}

export const setCtx = (ctx: any) => {
  contorl.ctx = ctx
}
/**
 * @param canvas 设置canvas
 */
export const setCanvas = (canvas: any) => {
  contorl.canvas = canvas
}
